.table-container {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}

.student-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

/* 复选框样式 */
.student-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* 选中行样式 */
.student-row.selected {
  background-color: #e3f2fd !important;
}

.student-row:hover {
  background-color: #f5f5f5;
}

.student-row.selected:hover {
  background-color: #bbdefb !important;
}

/* 表头复选框居中 */
.student-table th:first-child {
  text-align: center;
  width: 50px;
}

.student-table td:first-child {
  text-align: center;
  width: 50px;
}

.student-table th {
  background-color: #f5f7fa;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  border-bottom: 2px solid #e0e5ec;
  position: sticky;
  top: 0;
  z-index: 10;
}

.student-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  color: #555;
}

.student-row {
  transition: background-color 0.2s ease;
}

.student-row:hover {
  background-color: #f9fbfd;
}

.student-row:last-child td {
  border-bottom: none;
}

/* 状态标签样式 */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-active {
  background-color: #e6f7ee;
  color: #36ad7a;
  border: 1px solid #c3f2da;
}

.status-suspended {
  background-color: #fff7e6;
  color: #fa9d3b;
  border: 1px solid #ffe0a8;
}

.status-graduated {
  background-color: #e6f0ff;
  color: #4a6cf7;
  border: 1px solid #c3d4ff;
}

.status-dropped {
  background-color: #ffe6e6;
  color: #f55c65;
  border: 1px solid #ffc3c3;
}

.status-unknown {
  background-color: #f0f0f0;
  color: #999;
  border: 1px solid #ddd;
}

/* 操作按钮样式 */
.student-actions {
  display: flex;
  gap: 8px;
}

.btn-view,
.btn-edit,
.btn-delete {
  padding: 4px 10px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-view {
  background-color: #e6f7ee;
  color: #36ad7a;
}

.btn-view:hover {
  background-color: #c3f2da;
}

.btn-edit {
  background-color: #e6f0ff;
  color: #4a6cf7;
}

.btn-edit:hover {
  background-color: #c3d4ff;
}

.btn-delete {
  background-color: #ffe6e6;
  color: #f55c65;
}

.btn-delete:hover {
  background-color: #ffc3c3;
}

/* 可点击姓名样式 */
.clickable-name {
  color: #4a6cf7;
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
  transition: all 0.3s ease;
}

.clickable-name:hover {
  color: #3655c9;
  text-decoration: underline wavy #4a6cf7;
  transform: translateX(2px);
}

.clickable-name:active {
  transform: translateX(0);
}

/* 确保在表格中鼠标悬停效果正常 */
.student-row:hover .clickable-name {
  color: #3655c9;
}

/* 表格列宽调整 */
.student-id {
  width: 100px;
  font-family: 'Courier New', Courier, monospace;
}

.student-name {
  width: 80px;
}

.student-gender {
  width: 50px;
}

.student-grade,
.student-class {
  width: 80px;
}

.student-birthdate {
  width: 120px;
}

.student-contact {
  width: 120px;
}

.student-status {
  width: 80px;
}

.student-actions {
  width: 140px;
  white-space: nowrap;
}

/* 响应式表格 */
@media (max-width: 768px) {
  .table-container {
    box-shadow: none;
  }
  
  .student-table {
    font-size: 12px;
  }
  
  .student-table th,
  .student-table td {
    padding: 8px 10px;
  }
  
  /* 移动设备上简化部分列 */
  .student-birthdate,
  .student-contact {
    display: none;
  }
  
  .student-actions {
    flex-direction: column;
    gap: 4px;
    width: 80px;
  }
  
  .btn-view,
  .btn-edit,
  .btn-delete {
    width: 100%;
    padding: 6px;
  }
}

/* 空状态样式 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.empty-state h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: #666;
}

/* 加载动画 */
@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.6;
  }
}

.loading-row {
  animation: pulse 1.5s infinite;
}

.loading-cell {
  background-color: #f0f0f0;
  border-radius: 4px;
  height: 20px;
}